package com.androidme.app.examples;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.androidme.R;
import com.androidme.app.framework.base.AndroidMeActivity;
import org.acra.ErrorReporter;
import roboguice.inject.InjectResource;
import roboguice.inject.InjectView;


public class TestErrorReportActivity extends AndroidMeActivity {

    @InjectView(R.id.btn_sample)
    private Button button;
    @InjectResource(R.string.app_name)
    private String hello;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                String a = null;
                try {
                    System.out.println(a.toLowerCase());
                } catch (Exception e) {
                    ErrorReporter.getInstance().putCustomData("xiongbo", "111111");
                    ErrorReporter.getInstance().handleException(e);
                }
            }
        });


    }

    @Override
    protected void onPrepareData() {

    }

    @Override
    protected void onRefresh() {

    }

}